package com.reptile.context;

import com.reptile.service.BaseExecute;
import java.util.List;

/**
 * 策略模式-控制器
 */
public class BaseContext<T> {

    private BaseExecute baseExecute;

    public BaseContext(BaseExecute baseExecute){
        this.baseExecute = baseExecute;
    }

    public List<T> baseExecute(){
        return baseExecute.baseExecute();
    }

    public List<T> baseExecute(T data){
        return baseExecute.baseExecute(data);
    }
}
